package cn.tedu.oop;

public class Test7_Multi {
    public static void main(String[] args) {
        new Dog().eat();
        Animal a = new Dog();
        a.eat();
        //a.test();
    }
}
class Animal{
    public void eat(){
        System.out.println("啥都吃");
    }
}
class Dog extends Animal{
    public void eat(){
        System.out.println("狗吃肉");
    }
    public void test(){
        System.out.println("test..");
    }
}